package cn.t.service.common;

//@Slf4j
//@Component("obsUploadService")
//@AllArgsConstructor
//public class ObsUploadService implements IUploadService {
public class ObsUploadService {
/*

    private final SystemProperties systemProperties;
    private final IObsClient obsClient;

    @Override
    public String upload(MultipartFile sourceFile) {

        ObjectMetadata metadata = new ObjectMetadata();
        metadata.setContentType(sourceFile.getContentType());

        try {
            PutObjectResult result = obsClient.putObject(systemProperties.getObs().getBucket(), sourceFile.getOriginalFilename(), sourceFile.getInputStream(), metadata);
            log.info("文件上传华为云结果:{}", result);
            if (result != null) {
                return systemProperties.getObs().getPrefix() + sourceFile.getOriginalFilename();
            }
        } catch (IOException e) {
            log.error("文件解析异常", e);
        }
        throw new BizException(ErrorEnum.OPERATE_FAIL.getCode(), ErrorEnum.OPERATE_FAIL.getMessage());
    }
*/

}
